<?php require(DIR_TEMPLATE . C('config_template')."/setting/setting.php" ); ?>
<?php echo $header; ?>
<?php if ($SPAN[0]) { ?>
  <div class="span<?php echo $SPAN[0]; ?>">
    <?php echo $column_left; ?>
  </div>
<?php } ?>

<div class="span<?php echo $SPAN[1];?>">

<div id="content"><!--<?php echo $content_top; ?>-->

  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $_['heading_title']; ?></h1>

  <form action="<?php echo US('account/rechargeablecard'); ?>" method="post" enctype="multipart/form-data" id="form">
    <h2><?php echo $_['text_infomation']; ?></h2>
    <div class="content">
      <table class="form">

        <tr>
          <td><span class="required">*</span> <?php echo $_['entry_cardNumber']; ?></td>
          <td><input type="text" name="cardNumber" id="cardNumber" value="<?php echo $cardNumber; ?>"  />
            <?php if (isset($error_cardNumber)) { ?>
            <span class="error"><?php echo $error_cardNumber; ?></span>
            <?php } ?></td>
        </tr>

        <tr>
          <td><span class="required">*</span> <?php echo $_['entry_cardCode']; ?></td>
          <td><input type="password" name="cardCode" value="<?php echo $cardCode; ?>"/>
            <?php if (isset($error_cardCode)) { ?>
            <span class="error"><?php echo $error_cardCode; ?></span>
            <?php } ?></td>
        </tr>

      </table>
    </div>
    <div class="buttons">
      <div class="left"><a href="<?php echo US('account/account'); ?>" class="button"><?php echo $_['button_back']; ?></a></div>
      <div class="right"><input type="submit" value="<?php echo $_['button_confirm']; ?>" class="button" /></div>
    </div>

    <div class="buttons">
      <div class="left">
          <?php 
                echo '<b>充值优惠信息：</b><br>';
               foreach ($couponcards as $couponcard) {
                
                 echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 充值'.$couponcard['lowAmount'].'~'.$couponcard['highAmount'].'元送'.$couponcard['reward'].'元</br>';
               }
          ?>
      </div>
    </div>

  </form>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>